Reflection of SPRequest-"UpdateFileOrFolderPrope rties"
Hi,
I am having a doubt in the syntax of the reflection method - "UpdateFileOrFolderProperties" ,which is present in the SPRequest internal class.
The Syntax is given below:
void string
bstrWebUrl, string
bstrWebRelativeUrl, object
varProperties, int
fMigrationSemantics, int
fReGhost)
UpdateFileOrFolderProperties(Member ofOWSSvrLib.ISPRequest
)
Please enlighten me the meaning and expected values of the parameters :
bstrWebUrl,bstrWebRelativeUrl,
varProperties,fMigrationSemantics,fReGhost
Thanks,
Grigory
October 26th, 2011 7:13am
Hi Grigory,
calling any undocumented internal method of SPRequest will lead to an unsupported sharepoint database.
You should never do this!
See here for details:
http://blogs.technet.com/b/stefan_gossner/archive/2005/07/27/undocumented-api-part1.aspx
Cheers,
StefanStefan Goner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 26th, 2011 8:04am
Hi Grigory,
calling any undocumented internal method of SPRequest will lead to an unsupported sharepoint database.
You should never do this!
See here for details:
http://blogs.technet.com/b/stefan_gossner/archive/2005/07/27/undocumented-api-part1.aspx
Cheers,
StefanStefan Goner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
October 26th, 2011 3:03pm
Hi Stefan,
I do agree with what you say.But i would like to do some research in this area.Please help me with the syntax if you have worked on it.It would be of immense help.
Thanks,
Grigory
Free Windows Admin Tool Kit Click here and download it now
October 28th, 2011 2:48am
Hi Grigory,
sorry - as member of Microsoft Support I'm not allowed to share any undocumented internals about our products.
Cheers,
StefanStefan Goner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
October 28th, 2011 5:00am
Hi Grigory,
sorry - as member of Microsoft Support I'm not allowed to share any undocumented internals about our products.
Cheers,
Stefan
Stefan Goßner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Hi Stefan ,
I have shared my current requirement which led me to explore the reflected methods.
When I rename a folder in a MOSS 2007/WSS 3.0 document library, it changes the last modified date on all documents and subfolders within that folder. Oddly, it doesn't change the dates to the last updated date of the folder, but to a recent date in some
disordred fashion.
I have the requirement to rename the filenames and folders.
Iam doing this procedure programmatically using the SP object model.
At first I start with the file rename where i preserve the Modifed time and Modified By using .Net Reflection.Then i start renaming the folders up the heirarchy.Here also i preserve the modified by and modified date of the corresponding folder(programmatically).But
what happens is that all the files and subfolders under the recently changed folder gets updated with some recent date,not the current system date. Somehow the "Modified By" remains the same.
This behaviour doesnot occur when a folder renaming happens the first time,but when the same folder is renamed the second time the sub folders and files under it gets updated with a different date.
I tried using SPListitem.SystemUpdate(),but the "Modified" and "Modified By" fields were changing.
Iam working with MOSS 2007 ,please share me a solution in the same.
Thank you
Grigory
Free Windows Admin Tool Kit Click here and download it now
October 31st, 2011 5:04am
Hi Grigory,
sorry - as member of Microsoft Support I'm not allowed to share any undocumented internals about our products.
Cheers,
Stefan
Stefan Goßner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Hi Stefan ,
I have shared my current requirement which led me to explore the reflected methods.
When I rename a folder in a MOSS 2007/WSS 3.0 document library, it changes the last modified date on all documents and subfolders within that folder. Oddly, it doesn't change the dates to the last updated date of the folder, but to a recent date in some
disordred fashion.
I have the requirement to rename the filenames and folders.
Iam doing this procedure programmatically using the SP object model.
At first I start with the file rename where i preserve the Modifed time and Modified By using .Net Reflection.Then i start renaming the folders up the heirarchy.Here also i preserve the modified by and modified date of the corresponding folder(programmatically).But
what happens is that all the files and subfolders under the recently changed folder gets updated with some recent date,not the current system date. Somehow the "Modified By" remains the same.
This behaviour doesnot occur when a folder renaming happens the first time,but when the same folder is renamed the second time the sub folders and files under it gets updated with a different date.
I tried using SPListitem.SystemUpdate(),but the "Modified" and "Modified By" fields were changing.
Iam working with MOSS 2007 ,please share me a solution in the same.
Thank you
Grigory
October 31st, 2011 5:04am
I would recommend to open a support case to get this analyzed as it might require a hotfix.
Cheers,
StefanStefan Goner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
October 31st, 2011 11:41am
I would recommend to open a support case to get this analyzed as it might require a hotfix.
Cheers,
Stefan
Stefan Goßner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Hi Stefan,
Please guide me through the procedure to open a support case. Will i have to pay for opening the support case?
I do have a valid license for the product.
Looking forward to hearing from you.
Regards,
Grigory
October 31st, 2011 3:54pm
Hi Grigory,
please follow the process on
http://support.microsoft.com
If the issue is confirmed as a problem in our product the case will be free of charge.
Otherwise you will have to pay for the support case.
Cheers,
StefanStefan Goner
Senior Escalation Engineer - Microsoft CSS
This post is provided "AS IS" with no warrenties and confers no rights.
Free Windows Admin Tool Kit Click here and download it now
November 4th, 2011 6:07am